<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.boxin.ims.modules.wechat.entity.Product" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html style="overflow-x:hidden;overflow-y:auto;"><head>
<title>邯郸微购物</title>		
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">        
<!-- Mobile Devices Support @begin -->
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<style type="text/css">
img{width:100%}
</style>
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/common.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/xq.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/home-menu-8.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/font-awesome.css" media="all">
<script src="${ctxStatic}/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/bootstrap/stickUp.min.js" type="text/javascript"></script>
</head>
<body>
<div class="body">
<header class="w-header" mon="type=header">
  <a class="arrow-wrap" href="javascript:history.back()" mon="content=back">
   <span class="arrow-left"></span>
  </a>
  <a href="index.html?uid=${uid }&wechatId=${wechatId}" class="home" mon="content=home"></a>
  <div class="text">商品详情</div>
</header>

<article class="p-detail" mon="action=click">
  <div class="w-product-image">
    <div class="wrapper">
      <span class="label label-type-mianyuyue">免预约</span>
      <img src="${ctxUser }/product/${product.pic}" >
    </div>
  </div>
<div class="w-product-desc">
  <div id="navbar" class="segment buy-segment">
    <span class="" style="color: #FF3C6E;font-weight: 700;"><em class="price-value">￥${product.price/100 }</em></span>
    <c:if test="${product.sourcePrice != null&&!(empty  product.sourcePrice)  }">
    <span class="original-price"><del>￥${product.sourcePrice/100}</del></span>
    </c:if>
     <div class="buy-wrapper" mon="action=click">
        <div class="w-buy-btn-normal w-buy-btn-normal-small">
        <c:if test="${ product.isSale eq '1'}">
        	<c:if test="${product.payByScore eq '2' }"><a href="${ctxFront }/shopping/product/payByScore?productId=${product.id}&uid=${uid}&wechatId=${wechatId}" class="buy-btn">立即抢购</a></c:if>
  			<c:if test="${product.payByScore ne '2' }"><a href="${ctxFront }/shopping/product/createPay?productId=${product.id}&uid=${uid}&wechatId=${wechatId}" class="buy-btn">立即抢购</a></c:if>
		</c:if>
		<c:if test="${product.isSale eq '0'}">
 		 <a href="" class="buy-btn"   style="background: none repeat scroll 0 0 #E3E6E5;">立即抢购</a>
		</c:if>
          
        </div>
     </div>
  </div>
  <div class="segment summary-segment">
      <div class="title">${product.name }</div>
      <div class="description">${product.description }</div>
  </div>

</div>

<section class="w-rich-text">
    <div class="rich-title j-block-title">套餐内容</div>
    <div class="rich-wrapper">
    <div class="rich-content">
    ${product.detail }
    </div>
    </div>
</section>
<section class="w-rich-text">
    <div class="rich-title j-block-title">消费提示</div>
    <div class="rich-content rich-wrapper">${ product.reminder} </div>
</section>

<div class="w-buy-btn-normal w-buy-btn-normal-large" >
<c:if test="${ product.isSale==1}">
	<c:if test="${product.payByScore eq '2' }"><a href="${ctxFront }/shopping/product/payByScore?productId=${product.id}&uid=${uid}&wechatId=${wechatId}" class="buy-btn">立即抢购</a></c:if>
	<c:if test="${product.payByScore ne '2' }"><a href="${ctxFront }/shopping/product/createPay?productId=${product.id}&uid=${uid}&wechatId=${wechatId}" class="buy-btn">立即抢购</a></c:if>
</c:if>
<c:if test="${ product.isSale==0}">
  <a href="#" class="buy-btn" mon="price=40&amp;content=立即抢购"  style="background: none repeat scroll 0 0 #E3E6E5;">立即抢购</a>
</c:if>
</div>
</article>



</div>
<jsp:include page="./footer.jsp"></jsp:include>
</body>
</html>
